<template>
  <a-result status="500" title="出现异常了呀" :sub-title="message">
    <template #extra>
      <a-button type="primary" @click="canOperation">
        再次请求
      </a-button>
    </template>
  </a-result>
</template>
<script>
export default {
  name: "BErrorResult",
  props: {
    message: {
      type: String,
      default: "出现异常了呀",
    }
  },
  data() {
    return {
      description: "错误结果",
    }
  },
  methods: {
    canOperation: function () {
      this.$emit('reRequest');
    },
  }
}
</script>

<style scoped>

</style>